From c99cf5949cb79b5fe9c1bd231fc1668d459582a0 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 28 Jul 2008 15:41:17 +0000 Subject: [PATCH] * Add a few CSS ids to allow customization of warning messages * Apply formatNum to $wgMaxArticleSize too --- includes/EditPage.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index dd3544cab7..585e156d64 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1144,7 +1144,9 @@ class EditPage { # Then it must be protected based on static groups (regular) $noticeMsg = 'protectedpagewarning'; } + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( $noticeMsg ); + $wgOut->addHTML( "
\n" ); } if ( $this->mTitle->isCascadeProtected() ) { # Is this page under cascading protection from some source pages? @@ -1166,9 +1168,13 @@ class EditPage { $this->kblength = (int)(strlen( $this->textbox1 ) / 1024); } if ( $this->tooBig || $this->kblength > $wgMaxArticleSize ) { - $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgMaxArticleSize ); + $wgOut->addHTML( "
\n" ); + $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgLang->formatNum( $wgMaxArticleSize ) ); + $wgOut->addHTML( "
\n" ); } elseif( $this->kblength > 29 ) { + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'longpagewarning', $wgLang->formatNum( $this->kblength ) ); + $wgOut->addHTML( "
\n" ); } #need to parse the preview early so that we know which templates are used, -- 2.20.1